home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ntkb.zip / NTKB.EXE / Q101 / 9 / 21.TXT < prev    next >
Text File  |  1993-08-30  |  3KB  |  99 lines

  1. DOCUMENT:Q101921  28-JUL-1993  [W_NT]
  2. TITLE   :INF: MS-DOS TSR's in a Windows NT Command Prompt
  3. PRODUCT :Windows NT
  4. PROD/VER:3.10
  5. OPER/SYS:WINDOWS
  6. KEYWORDS:
  7.  
  8. ----------------------------------------------------------------------
  9. The information in this article applies to:
  10.  
  11.  - Microsoft Windows NT operating system, version 3.1
  12.  - Microsoft Windows NT Advanced Server, version 3.1
  13. ----------------------------------------------------------------------
  14.  
  15. The Windows NT command prompt, CMD.EXE, is a 32-bit application and
  16. therefore does not use the _DEFAULT.PIF or any of its settings,
  17. including the default AUTOEXEC.NT and CONFIG.NT files. Any drivers or
  18. TSR's added into the AUTOEXEC.NT and the CONFIG.NT will not be
  19. available at the command prompt.
  20.  
  21. Creating a Windows NT MS-DOS (16-bit) command prompt with active
  22. MS-DOS drivers or TSR's can be accomplished in the following three
  23. ways:
  24.  
  25. Procedure 1
  26. -----------
  27.  
  28. 1. Create a CONFIG.XXX and AUTOEXEC.XXX that are set up to run the desired
  29.    drivers and TSR's, where XXX is an extension you create.
  30.  
  31. 2. Create a Program Information File (PIF) that executes CMD.EXE from
  32.    the SYSTEM32 directory.
  33.  
  34. 3. In the PIF Editor of the Windows NT Options, use the CONFIG.XXX and
  35.    AUTOEXEC.XXX that you created in Step 1.
  36.  
  37. 4. Create an icon to execute this PIF.
  38.  
  39. Procedure 2
  40. -----------
  41.  
  42. This procedure automates command line entries.
  43.  
  44. 1. Create a batch file that executes the desired TSR's; for example,
  45.    DOSKEY macros.
  46.  
  47. 2. Create a new command prompt icon with the following as the command
  48.    line
  49.  
  50.       CMD.EXE /k C:\XXX
  51.  
  52.    where C:\XXX is the drive, directory, and filename of the batch file
  53.    created in Step 1.
  54.  
  55. This procedure will run the command prompt with the desired TSR's, but
  56. it will be a 16-bit Virtual DOS Machine (VDM).
  57.  
  58. Procedure 3
  59. -----------
  60.  
  61. This procedure uses the above batch file in a PIF.
  62.  
  63. 1. Create a batch file that executes the desired TSR's; for example,
  64.    DOSKEY macros.
  65.  
  66. 2. Using the PIF Editor, create a PIF that executes CMD.EXE from the
  67.    SYSTEM32 directory.
  68.  
  69. 3. On the Optional Parameters line, add the following
  70.  
  71.       /k C:\XXX
  72.  
  73.    where C:\XXX is the drive, directory and filename of the batch file
  74.    created in Step 1.
  75.  
  76. 4. Create an icon to execute this PIF.
  77.  
  78. This procedure will run the command prompt with the desired TSR's, but
  79. it will be a 16-bit Virtual DOS Machine (VDM).
  80.  
  81. Additional reference words: 3.10 command.com
  82. KBCategory:
  83. KBSubcategory: mdos
  84.  
  85. =============================================================================
  86.  
  87. THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
  88. PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.  MICROSOFT DISCLAIMS
  89. ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
  90. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN NO
  91. EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
  92. ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
  93. CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
  94. MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
  95. POSSIBILITY OF SUCH DAMAGES.  SOME STATES DO NOT ALLOW THE EXCLUSION
  96. OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
  97. SO THE FOREGOING LIMITATION MAY NOT APPLY.
  98.  
  99. Copyright Microsoft Corporation 1993.